#define _CRT_SECURE_NO_WARNINGS
/**/
#include<stdio.h>
#include<stdbool.h>

bool CheckPermutation(char* s1, char* s2) {
    int nums1[26] = { 0 };
    int nums2[26] = { 0 };
    char* letter = "abcdefghijklmnopqrstuvwxyz";
    if (strlen(s1) != strlen(s2))
        return false;
    for (int i = 0; i < strlen(s1); i++)
    {
        for (int j = 0; j < 26; j++)
        {
            if (s1[i] == letter[j])
                nums1[j]++;
                if (s2[i] == letter[j])
                    nums2[j]++;
        }
    }
    for (int k = 0; k < 26; k++)
    {
        if (nums1[k] != nums2[k])
        {
            return false;
        }
    }
    return true;
}